module.exports = {
  apps: [
    {
      name: "monitor",
      port: "3000",
      exec_mode: "cluster",
      instances: "max", // max means that PM2 will auto detect the number of available CPUs and run as many processes as possible

      script: "./.output/server/index.mjs",
      env: {
        NODE_ENV: "development",
      },
      env_production: {
        NODE_ENV: "production",
      },
      env_test: {
        NODE_ENV: "test",
      },
    },
  ],
};
